
package com.medical.service;

import com.medical.entity.RegistrationEntity;

import java.util.Date;
import java.util.List;

public interface RegistrationService {
    // 新增基础CRUD方法
    RegistrationEntity getById(Integer reId);

    void updateById(RegistrationEntity entity);


    // 新增事务声明
    List<RegistrationEntity> checkAndUpdateOverdueRegistrations(List<RegistrationEntity> registrations);

    /**
     * 通过用户名查询挂号信息
     *
     * @param userName
     * @return list
     */
    List<RegistrationEntity> selectByUserName(String userName);


    /**
     * 查询所有挂号信息
     *
     * @return
     */
    List<RegistrationEntity> getAllRegistrations();

    void updateStatus(Integer reId, String status, Integer score);

    List<RegistrationEntity>  getOneByUserId(Integer userId);

    void add(RegistrationEntity registrationEntity);
}
